package com.xqboss.apps.dto.system;

import com.xqboss.apps.dto.PageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * 公告消息表
 *
 * @author wangcong
 * @date 2023-08-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("公告消息Dto")
public class SysAnnouncementMsgDto extends PageDto {

    @ApiModelProperty("公告id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("分类id")
    private Long categoryId;

    @ApiModelProperty("消息标题")
    private String title;

    @ApiModelProperty("是否上架 0否,1是")
    private Boolean saleable;

    @ApiModelProperty("是否已读 0否,1是")
    private Integer isRead;

    @ApiModelProperty("用户注册时间")
    private Date createTime;

    @ApiModelProperty("公告数组")
    private List<Long> ids;
}